import './index.scss';
import React, { Component } from 'react';
import tbg from './tbg.jpg';
import { _ } from 'libs/tools';

class BuyVac extends Component {
  state = {
    active: false
  }

	componentDidMount () {
    console.log('window.location.href',window.location)

    if(String(window.location.search).indexOf('isHeaderVisible')> -1){}else{
			history.pushState(null,null,window.location.href+'?isHeaderVisible=false')
    }


		// window.location.href = window.location.href + '?isHeaderVisible=false'
	}


  render() {
    return (
      <div className={'BuyVac'}>
        <div className={'BuyVac-banner'}>
					<div className="back" onClick={() => {
						location.href = 'jzapp://close_web_page';
					}}></div>
        </div>
				<img src={tbg} alt="" />
				<div className={'btn-img'} onClick={_.throttle(() => location.href = 'jzapp://message_company', 1500)}>
					{/*<img src={bt} alt=""/>*/}
				</div>
      </div>
    );
  }
}


export default BuyVac;